@media screen and (min-width:1200px) {
  html {
    font-size: 20px;
  }
}

@media screen and (min-width:800px) and (max-width:1200px) {
  html {
    font-size: 16px;
  }
}

@media screen and (max-width:800px) {
  html {
    font-size: 12px;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  font-size: 20px;
  font-family: '楷体';
}

button {
  width: 9rem;
  height: 2rem;
  text-align: center;
  line-height: 2rem;
  margin: 3rem;
  cursor: pointer;
  background-color: dodgerblue;
  color: white;
  border: none;
  transition: all .5s;
  font-size: 16px;
}

button:hover {
  opacity: 0.8;
}

div {
  width: 30rem;
  height: 32rem;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  background-color: white;
  overflow: hidden;
  border-radius: 6px;
}

div p:nth-child(1) {
  width: 30rem;
  height: 6rem;
  text-align: center;
  position: relative;
}

div p:nth-child(1) img {
  width: 6rem;
  height: 6rem;
  margin-top: 1rem;
  border-radius: 50%;
}

div p:nth-child(1) span {
  font-size: 1.5rem;
  color: black;
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}

div p:nth-child(1) span:hover {
  color: red;
}

div p:nth-child(2) {
  width: 30rem;
  height: 19rem;
  padding: 0 5rem;
}

div p:nth-child(2) input {
  display: block;
  width: 100%;
  height: 2rem;
  padding-left: 1rem;
  line-height: 2rem;
  margin: 1rem 0;
}

div p:nth-child(2) label {
  display: block;
  margin: 1.5rem 0;
}

div p:nth-child(2) button {
  margin: 0.8rem 0;
  width: 100%;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  border-style: groove;
  color: white;
  border: none;
}

div p:nth-child(2) #checkbox {
  width: 1rem;
  height: 1rem;
  margin: 0;
  margin-right: 0.5rem;
  margin-top: 0.25rem;
  float: left;
}

div p:nth-child(2) span {
  float: left;
}

div p:nth-child(3) {
  width: 30rem;
  height: 6.5rem;
  background-color: #F1F1F1;
  padding: 0 5rem;
  float: left;
}

div p:nth-child(3) button {
  width: 5rem;
  height: 2rem;
  margin: 0;
  margin-top: 1.5rem;
  border: 0;
  background-color: red;
  color: white;
  text-align: center;
  line-height: 2rem;
  float: left;
}

div p:nth-child(3) span {
  display: block;
  margin-top: 1.7rem;
  float: right;
  font-size: 16px;
}